package com.zuowei.ycy.user.adapter;

import android.content.Context;

import com.and.yzy.frame.adapter.CommonAdapter;
import com.and.yzy.frame.adapter.ViewHolder;
import com.zuowei.ycy.R;
import com.zuowei.ycy.user.domain.IndexSort;

import java.util.List;

/**
 * Created by Administrator on 2016/4/25.
 */
public class IndexSortAdapter extends CommonAdapter<IndexSort> {

    public IndexSortAdapter(Context context, List<IndexSort> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder holder, IndexSort item, int positon) {

        holder.setTextViewText(R.id.tv_sort,item.getMerchant_type_name());

        holder.setImageByUrl(R.id.iv_good,item.getMerchant_type_pic());
    }
}
